<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:66:"E:\jiance\public/../application/admin\view\methods\index\edit.html";i:1578293901;s:52:"E:\jiance\application\admin\view\layout\default.html";i:1576638344;s:49:"E:\jiance\application\admin\view\common\meta.html";i:1576638344;s:51:"E:\jiance\application\admin\view\common\script.html";i:1576638344;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !$config['fastadmin']['multiplenav']): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加策略</title>
    <link rel="stylesheet" href="/assets/css/addPolicy.css">
    <link rel="stylesheet" href="/assets/css/jedate.css">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>

<div align="center">
    <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <table id="table1" width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
            <tbody>
            <tr>
                <th>条件名称</th>
                <th>评分(0-100)</th>
                <th>最近天数(1-60天)</th>
                <th>客户真实度(0-100)</th>
                <th>IP类型</th>
            </tr>
            <tr>
                <td>
                    <div align="center">
                        <input id="c-title" data-rule="required;" name="row[title]" class="inp1" style="width:200px" type="text" value="<?php echo $row['title']; ?>">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <input id="c-score" data-rule="required;integer;range(0~100)" class="inp1" name="row[score]" type="number" value="<?php echo $row['score']; ?>">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <input id="c-days" data-rule="required;integer;range(1~60)" class="inp1" name="row[days]" type="number" value="<?php echo $row['days']; ?>">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <select id="c-trueness_con" name="row[trueness_con]" style="width: 100px;">
                            <option value=" "> </option>
                            <option value=">" <?php if($row['trueness_con'] == '>'): ?> selected <?php endif; ?>> > </option>
                            <option value=">=" <?php if($row['trueness_con'] == '>='): ?> selected <?php endif; ?>> >= </option>
                            <option value="=" <?php if($row['trueness_con'] == '='): ?> selected <?php endif; ?>> = </option>
                            <option value="<=" <?php if($row['trueness_con'] == '<='): ?> selected <?php endif; ?>> <= </option>
                            <option value="<" <?php if($row['trueness_con'] == '<'): ?> selected <?php endif; ?>> < </option>
                        </select>
                        <input id="c-trueness" data-rule="required;integer;range(0~100)" class="inp1" name="row[trueness]" type="number" value="<?php echo $row['trueness']; ?>">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <label><input type="checkbox" value="数据中心" name="row[type_id][0]" <?php if(in_array('数据中心',$row['new_arr'])): ?> checked<?php endif; ?>>数据中心</label>
                        <label><input type="checkbox" value="专用出口" name="row[type_id][1]" <?php if(in_array('专用出口',$row['new_arr'])): ?> checked<?php endif; ?>>专用出口</label>
                        <label><input type="checkbox" value="普通宽带" name="row[type_id][2]" <?php if(in_array('普通宽带',$row['new_arr'])): ?> checked<?php endif; ?>>普通宽带</label>
                        <label><input type="checkbox" value="移动宽带" name="row[type_id][3]" <?php if(in_array('移动宽带',$row['new_arr'])): ?> checked<?php endif; ?>>移动宽带</label>
                        <label><input type="checkbox" value="骨干节点" name="row[type_id][4]" <?php if(in_array('骨干节点',$row['new_arr'])): ?> checked<?php endif; ?>>骨干节点</label>
                        <label><input type="checkbox" value="已知爬虫" name="row[type_id][5]" <?php if(in_array('已知爬虫',$row['new_arr'])): ?> checked<?php endif; ?>>已知爬虫</label>
                        <label><input type="checkbox" value="中小运营商" name="row[type_id][6]" <?php if(in_array('中小运营商',$row['new_arr'])): ?> checked<?php endif; ?>>中小运营商</label>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
        <table id="table2" width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
            <tr>
                <th>省份(示例:'省份1','省份2','省份3')</th>
                <th>城市(示例:'城市1','城市2','城市3')</th>
                <th>访问次数</th>
            </tr>
            <tr>
                <td>
                    <div align="center">
                        <select id="c-provice_include" name="row[provice_include]" style="width: 100px;">
                            <option value=""> </option>
                            <option value="包含" <?php if($row['provice_include'] == '包含'): ?> selected <?php endif; ?>> 包含</option>
                            <option value="不包含" <?php if($row['provice_include'] == '不包含'): ?> selected <?php endif; ?>> 不包含</option>
                        </select>
                        <input id="c-provice" class="inp1"  name="row[provice]" style="width: 350px" type="text" value="<?php echo $row['provice']; ?>">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <select id="c-city_include" name="row[city_include]" style="width: 100px;">
                            <option value=""> </option>
                            <option value="包含" <?php if($row['provice_include'] == '包含'): ?> selected <?php endif; ?>> 包含</option>
                            <option value="不包含" <?php if($row['provice_include'] == '不包含'): ?> selected <?php endif; ?>> 不包含</option>
                        </select>
                        <input id="c-city" name="row[city]" class="inp1" style="width: 350px" type="text" value="<?php echo $row['city']; ?>">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <select id="c-visit_con" name="row[visit_con]" style="width: 100px;">
                            <option value="IP访问次数>" <?php if($row['visit_con'] == 'IP访问次数'): ?> selected <?php endif; ?>>IP访问次数></option>
                            <option value="IP段访问总次数>" <?php if($row['visit_con'] == 'IP段访问总次数'): ?> selected <?php endif; ?>>IP段访问总次数></option>
                            <option value="IP段访问IP个数>" <?php if($row['visit_con'] == 'IP段访问IP个数'): ?> selected <?php endif; ?>>IP段访问IP个数></option>
                        </select>
                        <input id="c-visit" name="row[visit]" class="inp1" type="number" value="<?php echo $row['visit']; ?>">
                    </div>
                </td>
            </tr>
        </table>
        <table id="table3" width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
            <tr>
                <th>运营商</th>
                <th>时间范围</th>
            </tr>
            <tr>
                <td>
                    <div align="center">
                        <label style="width: 100px;display: inline-block"><input type="checkbox" name="row[carrier][1]" value="移动" <?php if(in_array('移动',$row['new_carrier'])): ?> checked<?php endif; ?>>移动</label>
                        <label style="width: 100px;display: inline-block"><input type="checkbox" name="row[carrier][2]" value="联通" <?php if(in_array('联通',$row['new_carrier'])): ?> checked<?php endif; ?>>联通</label>
                        <label style="width: 100px;display: inline-block"><input type="checkbox" name="row[carrier][3]" value="电信" <?php if(in_array('电信',$row['new_carrier'])): ?> checked<?php endif; ?>>电信</label>
                        <label style="width: 100px;display: inline-block"><input type="checkbox" name="row[carrier][0]" value="其他" <?php if(in_array('其他',$row['new_carrier'])): ?> checked<?php endif; ?>>其他</label>
                    </div>
                </td>
                <td>
                    <div align="center">
                        <span>开始时间：</span>
                        <input id="c-begintime"  name="row[begintime]" type="text" class="jeinput" value="<?php echo date('Y-m-d H:i',$row['begintime']); ?>">
                        <span>结束时间：</span>
                        <input id="c-endtime"  name="row[endtime]" type="text" class="jeinput" value="<?php echo date('Y-m-d H:i',$row['endtime']); ?>">
                    </div>
                </td>
            </tr>
        </table>
        <div align="center" style="width:90%; height:40px"><br>
            <button class="FontWeight btn btn-success btn-embossed disabled" type="submit" value="确定" style="height:30px; width:90px"><?php echo __('OK'); ?></button>
            &nbsp;
            <button class="FontWeight btn btn-default btn-embossed" type="reset" value="取消" style="height:30px; width:90px"><?php echo __('Reset'); ?></button>
        </div>
    </form>

    <script src="/assets/js/jedate.min.js"></script>
    <script>
        jeDate("#c-begintime",{
            theme:{bgcolor:"#00A1CB",pnColor:"#00CCFF"},
            format: "YYYY-MM-DD hh:mm"
        });

        jeDate("#c-endtime", {
            theme: {bgcolor: "#00A1CB", pnColor: "#00CCFF"},
            format: "YYYY-MM-DD hh:mm"
        });
    </script>
</div>
</body>
</html>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>